package com.platform.service;

import com.platform.entity.InviteUserVo;
import com.platform.dao.ApiInviteUserMapper;

import com.platform.entity.UserVo;
import org.apache.commons.codec.digest.DigestUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ApiInviteUserService {
    @Autowired
    private ApiInviteUserMapper inviteUserMapper;

    public List<InviteUserVo> queryShopsByUserId(Long userid) { return inviteUserMapper.queryShopsByUserId(userid); }

    public int queryByUserId(String userid) { return inviteUserMapper.queryByUserId(userid); }

    public int queryInviteId(String userid) { return inviteUserMapper.queryInviteId(userid); }

    public int save(InviteUserVo inviteUserVo) {
        return inviteUserMapper.save(inviteUserVo);
    }

    public List<InviteUserVo> queryList(Map<String, Object> map) { return inviteUserMapper.queryList(map); }
}
